using System;

namespace MaterialUI
{
	public static class ActionExtension
	{
		public static void InvokeIfNotNull(this Action action)
		{
			action?.Invoke();
		}

		public static void InvokeIfNotNull<T>(this Action<T> action, T parameter)
		{
			action?.Invoke(parameter);
		}
	}
}
